package com.cola.programmer.entity.admin;

import org.springframework.stereotype.Component;

/**
 * @Grup:com.cola.programmer.entity.admin
 * @Auther:cola
 * @Data:2021/5/22-2021-05-19:19
 * @version:1.0
 * 用户实体类
 */
@Component
public class User {
    private Long id;//用户id
    private String username;//用户名,登录名
    private String password;//密码
    private String photo;//头像照片地址
    private int sex;//性别 0代表未知,1代表男 2代表女
    private Integer age;//年龄
    private String address;//地址

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
